Einhugur macOS Bridge plugin.

EinhugurCoreBridge.NSArray Class

Read only array for Cocoa objects.

Use NSMutableArray to get read and write array.

EinhugurCoreBridge.NSObject
   NSArray

class EinhugurCoreBridge.NSArray implements

EinhugurCoreBridge.INSCopying

Constructors

NSArray (private) This constructor is private since you cannot create instance of this class directly.

Properties

ClassName (Inherited) (desktop - console) Returns the name of the Cocoa class under the hood as String.
CountReturns number of elements in the array.
Handle (Inherited) Returns Integer handle to the native NSObject structure.

Methods

BooleanValueReturns Boolean value from the array at given index or false if the element at given index was not NSNumber.
shared CastDoes deep cast on incoming NSObject to NSArray
ContainsReturns a Boolean value that indicates whether a given object is present in the array.
ContainsReturns a Boolean value that indicates whether a given string is present in the array.
DoubleValueReturns Double value from the array at given index or false if the element at given index was not NSNumber.
shared FromIntegerPtrConstructs NSArray object from Integer handle coming from declares or 3rd party plugin.
IndexOfReturns the lowest index whose corresponding array value is equal to a given object.
IndexOfReturns the lowest index whose corresponding array value is equal to a given string.
IntegerValueReturns Integer value from the array at given index or false if the element at given index was not NSNumber.
shared IsNSArrayReturns true if the NSObject under the hood is NSArray or derived from NSArray.
Operator_SubscriptGets NSObject from given index in the array.
Release (Inherited) Releases the NSObject.
Retain (Inherited) Retains the NSObject
StringValueReturns String value from the array at given index or false if the element at given index was not String.

Constants

Version = 5.0 (Inherited)

Examples

Note when you take out of NSArray class then you will need to do “deep cast” as in use .Cast like for example NSImage.Cast to cast the objects if you want to get them as anything but base NSObject.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • iOS
  • Unsupported Platforms:

  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit